package com.zzyl.nursing.job;

import com.zzyl.nursing.domain.DeviceData;
import com.zzyl.nursing.service.IDeviceDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("cleanHistoryDeviceData")
public class CleanHistoryDeviceData {

    @Autowired
    private IDeviceDataService deviceDataService;

    public void cleanData(Integer minute) {
        deviceDataService.cleandOldData(minute);
    }
}
